<div class="right_side_operate_area">
    <div class="right item_add_btn">
		<?php 
			$str_title=__("Edit",true);
    		echo $html->link(__("Cancel",true).$str_title,"/groups/index/");
    	?>
	</div>
    <div class="clear"></div>
</div>
<div class="right_side_scollbar">
<div class="detail_info_panel">
<?php
echo $form->create('Group', array('action' => 'edit','onsubmit' => "return checkginfo()"));
?>
<div class="details_item_line">
	<div class="details_item">
	    <div class="form_left_title left"><?php __("Group Name")?>：</div>
	    <div class="form_right_e_input left"><?php echo $form->text('Group.group_name');?></div>
	    <div id='groupnamemessage' style='display:none;' class="error_message">请填写部门名</div>
	</div>
</div>
<div class="details_item_line">
	<div class="details_item">
	    <div class="form_left_title left">部门描述：</div>
	    <div class="form_right_e_input left"><?php echo $form->textarea('Group.remark',array('class' => 'form_textarea'));?></div>
	</div>
</div>
<?php
echo $form->input('id', array('type'=>'hidden'));
?>
<div class="details_item_line">
	<div class="details_item">
	    <div class="form_left_title left"></div>
		<div class="form_add_submit left">
	    <?php echo $form->submit(__('Save',true), array("id"=>"adduser","name"=>"submit","class"=>"buttom","div"=>false));  ?>
	    </div>
	</div>
</div>
</div>
</div>
<script>
function checkginfo(){
	  if($("#GroupGroupName").val().trim() == ''){
			$("#groupnamemessage").css('display','block');
			return false;
		  }else{
		 	 $("#groupnamemessage").css('display','none');
		  }
}
</script>